﻿<BaseControl:DataControl x:Class="jSLApp.Client.Wpf.DefaultPage"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
                         xmlns:BaseControl="clr-namespace:jSLCore.Client.Presentation.BaseControl;assembly=jSLCore.Client.Presentation.Wpf"
                         xmlns:Controls="clr-namespace:jSLCore.Client.Presentation.Controls;assembly=jSLCore.Client.Presentation.Wpf" xmlns:jBinding="clr-namespace:jSLCore.Client.Presentation.jBinding;assembly=jSLCore.Client.Presentation.Wpf" xmlns:BaseValidationRules="clr-namespace:jSLCore.Client.Presentation.jBinding.BaseValidationRules;assembly=jSLCore.Client.Presentation.Wpf" xmlns:Validation="clr-namespace:jSLCore.Client.Presentation.BaseControl.Validation;assembly=jSLCore.Client.Presentation.Wpf" xmlns:System="clr-namespace:System;assembly=mscorlib" 
                         mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="600">
    <Controls:ImageGroupBox Header="This is ImageGroupBox" ImageSource="../Resources/test.png">
        <StackPanel Orientation="Vertical">
            <Button Content="Do Work 3 secs" Click="dotheWork_Clicked"/>
        <Controls:ImageHeader Header="This is ImageHeader. (StackPanel inside)" Margin="50,10" Image="../Resources/test.png"/>
        <Controls:LeftHeaderContainer Header="This is LeftHeaderContainer">
            <TextBox Text="the content"/>
        </Controls:LeftHeaderContainer>
            <Controls:LeftHeaderContainer Header="LeftHeaderContainer #2" IsContentFillGrid="False">
                <ComboBox IsReadOnly="False" IsEditable="True" Name="c" Width="150">
                    <ComboBox.Items>
                        <System:String>one</System:String>
                        <System:String>one two</System:String>
                    </ComboBox.Items>
                    <BaseControl:BaseControl.jBinding>
                        <jBinding:jNullContextBinding>
                            <BaseValidationRules:jNotNullRule ErrorText="Please, select value from list"/>
                        </jBinding:jNullContextBinding>
                    </BaseControl:BaseControl.jBinding>
                </ComboBox>
            </Controls:LeftHeaderContainer>            
        <CheckBox Content="Everything has Margin = 5;"/>
        <Controls:ImageButton 
            Content="ImageButton" 
            Image="../Resources/test.png"
            Click="showInfo_Clicked"/>
        <Controls:jNullableBox>
                <Controls:HyperlinkButton Click="showError_Clicked">
                    <BaseControl:BaseControl.jBinding>
                        <jBinding:jDelegateValueBinding ProvideValue="showShowError" UpdateGroupMode="Both"/>
                    </BaseControl:BaseControl.jBinding>
                </Controls:HyperlinkButton>
            </Controls:jNullableBox>
            <Button Content="Show Second ApplicationContainer" HorizontalAlignment="Left" Click="show_AppContainer"/>
            <Button Content="Show SelectControl" HorizontalAlignment="Left" Click="showSelect_Clicked"/>
            <Button Content="Show TreeSelectControl" HorizontalAlignment="Left" Click="showSelect2_Clicked"/>
            <Button Content="ShowTelericPage" Click="goTeleric_Clicked" HorizontalAlignment="Left"/>
            <Validation:ErrorBlock/>            
    </StackPanel>
    </Controls:ImageGroupBox>
</BaseControl:DataControl>
